<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
$nums=19;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='3' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<div id="MainBody">
<table class="TableList" width="100%">
<form name="search" method="get" action="admin.php">
			<input type="hidden" name="ac" value="index" />
			<input type="hidden" name="do" value="list" />
			<input type="hidden" name="fileurl" value="registration" />
	<tr class="TableContent">
		<td align="center" style="padding:3px">
			    开始时间：
                      <input type="text" name="vstartdate" class="input" size="10" value="<?=$vstartdate?>"  onClick="WdatePicker();"/>
        	&nbsp;结束时间：<input type="text" name="venddate" class="input" size="10" value="<?=$venddate?>"  onClick="WdatePicker();"/>
        	&nbsp;状态：
						  <input type="radio" name="startyype" value="迟到" <?php if ($startyype!=''){?>checked="checked"<?php }?> style="border:0px;"/><font color="#CCCCCC">迟到</font>
						  <input name="endtype" type="radio" style="border:0px;" value="早退" <?php if ($endtype!=''){?>checked="checked"<?php }?>/>
						  <font color="#CCCCCC">早退</font>&nbsp;&nbsp;&nbsp;用户：
			    <select name="user">
						  <option value="" selected="selected"></option>
						 <?=get_inc_user_type($user)?>
                </select>	&nbsp;&nbsp;<input type="submit" name="btnRefresh" id="button" value="查 找"/></td>
	</tr>
	
<!--  <tr class="TableControl">
		<td rowspan=2 align="center">
			 </td>
	</tr> -->
    </form>		
</table>
<form name="update" method="post" action="admin.php?ac=index&fileurl=registration">
<input type="hidden" name="vstartdate" value="<?=$vstartdate?>" />
<input type="hidden" name="venddate" value="<?=$venddate?>" />
<?php if ($startyype!=''){?><input type="hidden" name="startyype" value="迟到" /><?php }?>
<?php if ($endtype!=''){?><input type="hidden" name="endtype" value="早退" /><?php }?>
<input type="hidden" name="user" value="<?=$user?>" />
<div id="CodeWrap">
<div id="TabSwitch">
<ul>

<li class="active"><a href="admin.php?ac=index&fileurl=registration">考勤列表</a></li>
<li>
<img src="themes01/default/images/addicon.gif" width="10" height="10" />&nbsp;<a href="admin.php?ac=add&fileurl=registration">在线考勤</a></li>
</ul>

 
</div>
<div id="CodeShowBlockWrap">
<div id="QueryBar">
<div id="FilterWrap">
<label for="FilterStatus"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="15%"><input type="checkbox" class="checkbox" value="1" name="chkall" onClick="check_all(this)" /><b>全选</b>&nbsp;&nbsp;<input type="submit" name="do" id="button" value="删 除"/>&nbsp;&nbsp;<input type="submit" name="do" id="button" value="导 出"/></td>
    <td width="85%" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<?=showpage($num,$pagesize,$page,$url)?></td>
  </tr>
</table>
</label>
</div>
</div>

<div id="CodeShowBlock">
<table cellpadding="0" cellspacing="0" class="data-box"><thead>
<tr class="border-in">
<th width="36"><div>选项</div></th>
<th class="title"><div>姓名</div></th>
<th class="status"><div>上班时间</div></th>
<th class="scale"><div>下班时间</div></th>
<th class="scale"><div>状态(上班/下班)</div></th>
<th class="scale"><div>时长(迟到/早退)</div></th>
<th class="scale"><div>IP(上班/下班)</div></th>

</tr>
</thead><tbody>

<?foreach ($result as $row) {?>
<tr class="data-box-row"><td width="36" align="center"><input type="checkbox" name="id[]" value="<?=$row['id']?>" class="checkbox" /></td>
<td class="title"><?=$row['name']?></td><td class="status"><?=$row['startdate']?></td>
<td class="scale"> <?=$row['enddate']?></td>

<td class="scale"><?=$row['startyype']?>/<?=$row['endtype']?></td>
<td class="scale"><?=$row['starthour']?>小时/<?=$row['endhour']?>小时</td>
<td class="scale"><?=$row['startip']?>/<?=$row['endip']?></td></tr>
<?}?>


</tbody></table>
 
</div>
<div id="PageControl">
<div class="page-control">
<div class="border-in">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="15%">&nbsp;&nbsp;<input type="checkbox" class="checkbox" value="1" name="chkall" onClick="check_all(this)" /><b>全选</b>&nbsp;&nbsp;<input type="submit" name="do" id="button" value="删 除"/>&nbsp;&nbsp;<input type="submit" name="do" id="button" value="导 出"/></td>
    <td width="85%" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<?=showpage($num,$pagesize,$page,$url)?></td>
  </tr>
</table>
  

</div>
</div>
</div>
</div>
</div>
 </form>
</div>
</div>
</div>
 
<script language="javascript" src="javascripts01/tangram-1.3.1.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/elf.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/union.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/codeMgr.js" type="text/javascript"></script>
 
</body>
</html>
